package com.market.controller.admin;

import com.market.bean.MarketFeedback;
import com.market.bean.common.BasePageInfo;
import com.market.bean.common.BaseRespVo;
import com.market.bean.common.CommonData;
import com.market.service.admin.AdminFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tan
 * @date 2022年12月29日 17:48
 */
@RestController
@RequestMapping("admin/feedback")
public class AdminFeedbackController {
    @Autowired
    AdminFeedbackService feedbackService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String username, Integer id) {
        CommonData<MarketFeedback> data = feedbackService.list(info, id, username);
        return BaseRespVo.ok(data);
    }
}
